import request from '@/utils/request'

export function projectList (data) {
  return request({
    url: 'project/list',
    method: 'post',
    data
  })
}

export function newProject (data) {
  return request({
    url: 'project/add',
    method: 'post',
    data
  })
}

export function editProject (id, data) {
  return request({
    url: `project/edit/${id}`,
    method: 'post',
    data
  })
}

export function deleteProject (id) {
  return request({
    url: `project/delete/${id}`,
    method: 'get'
  })
}
